Textbook examples for chapter 6