Lecture examples for chapter 1