Added textbook examples for chapter 6.