added main method and outputed string