In this case the name attr is being changed on the instantiation, not after getting an instance.