Setting main class