Single file code for the program.