solved problem 59