exercise2.rb