renaming an instance of a class