Behavior training keeps student in class and out of the principal's office