model main class