Implement a queue using a linkedlist