Completed problem 2.2