modify InstanceImpl class, object initialization process.