working version of quiz 4