add the main method