Textbook examples for chapter 4