finished problem 17