In your queue example, consider also using pop() to show both push and pop (and front) work correctly.
In your queue example, consider also using pop() to show both push and pop (and front) work correctly.