Solved problem 47