Finish the exercise on Chapter 10