Main method made