Changed main method to accept user input so that the user can do a basic query of courses and a way to exit the program