solved problem 37