solved problem 259