Added cpp templates