public ReturnObject remove(int i) {
		ReturnObjectImpl output = new ReturnObjectImpl();
		if (i < 0 || i >= size()) {
			output.value = ErrorMessage.INDEX_OUT_OF_BOUNDS;
			return output;
		}
		if (nextElement.index == i) {
			output.value = nextElement.value;
			if (nextElement.nextElement == null) {
				nextElement = null;
			} else {
				nextElement = nextElement.nextElement;
				nextElement.moveIndexes(index);
			}
			return output;
		} else {
			return nextElement.remove(i);
		}
	}