Refactored persons.giveBirth function