Changing the properties of a primitive object