Updated ex29.rb