Better object constructor