Lecture examples for chapter 20