create main method