First, the musicians play the melody (or theme). Second, they improvise over the harmonies of the song—with some or all of the performers taking solos (these are the variations). Third, the musicians return to the melody for a final restatement of the theme.