implemented the method to generate a question under changeQuizMenu.