Updated exercise5.rb
updated exercise5.rb