Completed chapter 8 exercises