working node class with template