Replace removing an object, then adding a new one at the same index: we can just replace the object at the specified index.