Forgot to close the main begin there, so put: "}" in the last line of the program.