public boolean removeAt(int index) {

		if (indexOK(index)) {

			LinkedElement<E> elem = findElement(index);

			LinkedElement<E> prev = elem.getPrev();
			LinkedElement<E> next = elem.getNext();

			if (prev != null) {
				prev.setNext(next);
				// If the last element is being removed
				if (index == total - 1) {
					last = prev;
				}
			}
			if (next != null) {
				next.setPrev(prev);
				// If the first element is being removed
				if (index == 0) {
					first = next;
				}
			}
			total--;
			return true;
		}
		return false;
	}