Creating main method in main class