ex2.rb