Solutions to chapter 7