implemented and tested QuizAttempt