Lecture examples for chapter 16