refatoring class Person