added methods to Quiz class