added comment. added main method