Create interval.cpp