Added ex4.rb