Setting up a Metronome class