Turning AbstractNode class to an interface.