finished question1 with one small error