ex3.rb