add relationships and family tree function