Solutions to chapter 6