modified equals function of QuizItem