add main method