exercise5.rb