@Override
    /**
     * Return true if and only if x occurs in the list
     */
    public boolean contains(E x) {
        return this.index(x) != -1; // determine if index in the list is not -1
    }