added ex1.rb with changes