@Override
	public T set(int index, T element) {
		if (index <= size()) {
			MyList<T> node = first;
			for(int i = 1; i < index; i++) {
				node = node.right;
			}
			T temp = node.value;
			node.value = element;
			return temp;
		}
		return null;
	}