changed dictionaries to ListofQuestions for testing