Solutions to chapter 5