code for quiz