Notes from chapter 2.