Lecture examples for chapter 3