finish problem 17