Updated examples (need cleanup) for chapter 3