refactored getAge in impl