creating constraints and implement TierceChordConstraint