Update Template class file