stack and queue with inheritence