Create pat_1039.cpp