Main method created