Flamenco comes from the nomadic gypsies in Andalucía, a region in the south of Spain. It is made up of 3 primary elements. Three things the continually-moving people could always carry with themselves while they traveled - the cante, the baile & the compás. Cante is the singing that accompanies the baile, the dance. Compás is the rhythm that holds steady like a heartbeat throughout the song & dance, typically in the form of palmas, or hand-clapping.
Eventually other things were added like the toque, the guitar, which is now a major component, and the cajón, a wood box that people sit on and beat out the compás with their hands.
The Intermediate classes work on more rigorous and longer choreographies that ultimately lead to a performance opportunity for those who are interested.