Solved problem 22