Create slope.cpp