ViolationsObject class added that changes the list of violation objects into HashMap.