Update exercise4.rb

fix