Added C template. Modified Cpp template