solved problem 121