Representing queues and tables