exercise2.rb question 1