added solution to problem 10.13 of HW 10