Inheritance to node class