Added cpp template model