added the isAlive flag to Persons, and two helper functions