added main method