adding exercises from chapter 4