revised version to work like this ./countries countries1.txt