Adding main method