comments added - ex5.rb