Add exercise3.rb