Main method is made