Create pat_1031.cpp