Create frequency.cpp