Add solutions to chapter 5