Lecture examples for chapter 21