Solved problem 24