Wrote the node class