added a bit of the book chapter 2