Update HW3

problem 5