added main method in app