Solved problem 17