Add MagicObject sub class.