solved problem 25