Added C++ template