Lecture examples for chapter 9