Created new parent class for datastructures that use nodes