Adding for loops for building and taking quiz in QuizDemo