Create pat1039.cpp