Modified the object constructor