Update frequency.cpp