working version of quiz app