Added ex3.rb