Solved problem 039