node inherits from a base class