Programming exercise - code the sequencer part of a Drum Machine