Textbook examples for chapter 2