By Devan Coggan
Updated September 20, 2015 at 10:03 PM EDT

The students at Rockit Dance Studio in Los Angeles got a surprise this weekend when a special guest stopped by to teach their dance class: Britney Spears.

“Surprised the girls at @rockitdancestudio today!” she wrote on Instagram. “Thx for letting me take over your class @lenagold! They rocked it.”

Instructor Spears taught the girls how to rock out to Madonna’s “Give Me All Your Luvin’,” sharing a few videos of her students’ hard work.