* @return The value at the specified index.
     */
    public E valueAt(int index) {
        if (index >= size || index < 0) {
            return null;
        } else {
            Node<E> curr = head;

            for (int i = 0; i < size; i++) {
                if (i == index) {
                    return curr.getValue();
                } else {
                    curr = curr.getNext();
                }
            }
        }

        //because intellij is complaining at me
        return null;
    }