Modify delete() in ItemList to throw errors

this method throws IndexOutOfBoundsException.