added explanations in chapter 7