modified exercise1.rb and created exercise2.rb