solved problem 52