Create average.cpp