def __repr__(self):
    if self.father:
        bio_data = ("Child name='%s' father='%s' mother='%s'" % (self.name, self.father.name, self.mother.name))
        if self.is_student:
            bio_data += (" school='%s' mode='%s'" % (self.school.name, self.mode))
        else:
            bio_data += ' is-toddler'
        return bio_data
    elif (not self.is_married):
        bio_data = ("Person name='%s' %s single mode='%s'" % (self.name, ('male' if self.is_male else 'female'), self.mode))
        if self.company:
            bio_data += (" company='%s'" % self.company.name)
        else:
            bio_data += ' stay-at-home'
        return bio_data
    else:
        bio_data = ("Person name='%s' %s married spouse='%s'" % (self.name, ('male' if self.is_male else 'female'), self.spouse.name))
        if self.company:
            bio_data += (" company='%s'" % self.company.name)
        else:
            bio_data += ' stay-at-home'
        for child in self.children:
            bio_data += (" child='%s'" % child.name)
        bio_data += (" mode='%s'" % self.mode)
        return bio_data
def __repr__(self):
    if self.father:
        bio_data = ("Child name='%s' father='%s' mother='%s'" % (self.name, self.father.name, self.mother.name))
        if self.is_student:
            bio_data += (" school='%s' mode='%s'" % (self.school.name, self.mode))
        else:
            bio_data += ' is-toddler'
        return bio_data
    elif (not self.is_married):
        bio_data = ("Person name='%s' %s single mode='%s'" % (self.name, ('male' if self.is_male else 'female'), self.mode))
        if self.company:
            bio_data += (" company='%s'" % self.company.name)
        else:
            bio_data += ' stay-at-home'
        return bio_data
    else:
        bio_data = ("Person name='%s' %s married spouse='%s'" % (self.name, ('male' if self.is_male else 'female'), self.spouse.name))
        if self.company:
            bio_data += (" company='%s'" % self.company.name)
        else:
            bio_data += ' stay-at-home'
        for child in self.children:
            bio_data += (" child='%s'" % child.name)
        bio_data += (" mode='%s'" % self.mode)
        return bio_data