They swiftly moved across the dance floor in unison as the woman instructed them to do in class.