add main class and domain objects