added chapter 3 notes, chapter3.rb