solved problem 239