working version of the Quiz Program