Solved problem 1.