Add exercise2.rb