solutions to chapter 2 & 3