completed problem 9