Fix "Changing the Object Constructor" doc samples