Created ModelObject and made it a parameter to GraphicsObject and a member.