added chapter 4 notes, chapter4.rb