solved problem 49