Added template.cpp