Added ex5.rb