Create distance.cpp