added Template class