QueueAr implementation (not completed) with 0 error