added main method in file

added main method.