added HW3 Prob2