implemented classes for creating the meetsStopCriteria method and the repair method for the parser