exercise2.rb complete. removed =begin =end