Textbook examples for chapter 1