created exercise4.rb
exercise4.rb complete