complete exercises in chapter 5