working version of quiz