__init__ method for CoreObject created