Completed problem 10