added exercises from chapter 4