Create source file for main function.