Added an implementation for the queue interface