added code for quiz1