adding input and output for person class