adds implementation of frequency.py