Added exercise2.rb - exercise 1 and 2 complete