Completed problem 2.6