started adding examples motivated by chapter 6