Introduced a ModelInstance class