Creating main method