addPerson function