moved print function to within Person class