Person class converted to Factory of people