public Object dequeue() {
        if(first != null) {
            Object item = first.data;
            first = first.next;
            size--;
            return item;
        }
        return null;
    }