added function that returns an array of quizquestions