Finish problem 3.