working main with passed arguments