encapsulate all functions and variables within quizEngine.