Solved problem 4.