Created main method