Implementation of a simple metronome application