refactor space age using define_method