added parts of chapter 3