Put the main program into a main() function.