added ex1.rb