in the middle of stack, queue, and node classes