Creating a main class