implemented the base node class