chapter_8/ex8.rb