add frequency.py