redo of quiz1 with classes.