Adding main class