update exercises in chapter 5