give me an example code of which a particular violation of a student per date when it reach 3 times before turning into offense (e.g. No ID)