finished the frequency_meter