The problem is not the child but the school and the teacher. He's bored as hell. He's not learning anything that stimulates him so his mind wonders off. Boredom is cured by stimulating the mind. We shouldn't drug children for being bored. You could give him the Nerve-Calming Tea (1 cup) before school every morning to naturally calm him down.
Nerve-Calming Tea