Notes from chapter 3.