solved problem 149