completes chapter 9 exercises