Add Metronome class with scheduler