solved problem 89