added code for person 3