A main method