ex18.rb learn ruby the hard way