HW problem 1