Updated exercise3.rb with age