That is highly illegal.
Sure, NOW it is illegal. But in the 60's, on the lower East side of Detroit, with 60 kids in every class, it was not only legal, parents condoned it. It was more of crowd control than punishment.