Solutions to chapter 4