Completed problem 3.14