HW5 problem 1