solved problem 118