Rewrite the PositionConstraint as child class of 'Constraint'