solutions to chapter 8 exercises