Framework code for quiz results in instructor view