ex12.rb improved learn ruby the hard way