fix my-frequencies-helper code example