modify to run from command line with 2 words as input.