Textbook examples for chapter 18