working version of quiz5