Violation restored in the Cost class