Violations as classes