updated queue_demo