Refactored queue class to reflect FIFO requirement