Usually a failure to understand a basic code of conduct leads to tremendous amounts of lost instructional time especially among my younger students such as 9th graders. We have a simple six topic code. It involves dress, lateness, preparation, respect staying in seats and raising hands. Breaking the rules is rewarded with a lunch time detention that is half of their 45 minute lunch. It is spent block printing the code on graph paper (no empty spaces no funny messages). Didn't fill them all in? Come back tomorrow! It is aversive, a waste of the student's time, serves the example that the students free time is as valuable as the teacher's instructional time and is somewhat educational if used as a discipline lesson. I call it the "kinesthetic approach". Afterwards I always ask which or how many of those six rules the student broke. It can be done while you are teaching another class and is a deterent to poor behavior by setting an example of the consequences. Benefit: You don't stay after school for detention! Make sure in your detention notice to offer the student a choice of after school at 45 minutes or at lunch for 22 minutes. They MUST get their lunch and eat it first. State the consequences of a detention cut. Have a space for the lunch teachers to initial a time of leaving the cafeteria for your class. More than 2 of these type of detentions is rare for a even your toughest case. I did have one attention starved student who got it 14 times though!