Create template_pattern.cpp