Create distance2.cpp