chapter 9 finish (replaced with ExampleCode)