Moved questions to the main function in order to make the program more modular