first two chapter 4 exercises