added main method, just for reference