add ratios.cpp