changed ex42.rb