Added DetailedRelation class