Add exercise4.rb