started chapter 8, chapter8.rb