ex10.rb improved learn ruby the hard way