rewrite estimate.cpp. New_stat.txt got to stat.txt