Choreography using MEL language

My assignment is to program a dance in Autodesk Maya using MEL script, which is Maya’s programming language. This dance has to be “Achy Breaky Heart”. The requirements are the following: usually a choreography is divided into 8 sets, which is the count “1,2,3,4,5,6,7,8” that guides the choreo. It needs to include the four “8 sets” that this dance has. It also needs to be able to cycle. The link to the dance is https://www.youtube.com/watch?v=v-1uqYy-06U

I can send you a walking cycle I made using MEL if you want to see an example.