Create detecting.cpp