HW problem 2) a) complete and working