Add solutions to chapter 5 exercises