ex6.rb learn ruby the hard way