Finish last chapter 9 exercise