added main, first version