created main method