lines 12-14. You're trying to swap the Names of the phones, but getName() returns only copies of the originals. You can't assign to a copy. You could make getName() return a string& but that would destroy the point of having a getName function at all. What is more, you need to swap the cells and not their names.