ex16.rb improved learn ruby the hard way