Sitting through a whole hour-long class without fidgeting is tough. Especially when you’re a kid and that class is maths. Luckily, a math teacher from Wake County may have found a solution.

Bethany Lambeth has placed cycling machines under her students’ desks to get them to stop fidgeting and start focusing. “Before they were drumming on their desks, they were touching other people, they don’t do that anymore,” Lambeth said. “Their feet are getting the movement out. There has been a huge increase in the quality of our student’s work and a decrease in the amount of missing work.” The best part? The students are enjoying it! “It keeps me exercising and focused,” one student said. While another, who pedaled 5.5 miles and burned 133 calories before 10 a.m, said: “I’m a really energetic person, so this takes all my energy out.”

Each desk cycle costs around $150, but if it gets kids focused, it’s a small price to pay, right?

(h/t: distractifywral)