Lecture notes for chapter 3.pdf