updated chapter 7 notes, chapter7.rb