to model comparator class method added to enable goodness of fit test