modified age.rb