add code for quiz management