Person class and refactoring