created the main program