beginning metronome functionality and interface constructor