Complete exercises in chapter 7