solved problem 141