Create numtripat.cpp