completed problem 17