updated notes from chapter 3