completed problem 10