Lecture notes for chapter 2.pdf