add avg.line.cpp