Complete last Chapter 10 exercise