added some code to person class