exercise3.rb