Add template.cpp
pull for fastr-forward