added use of command line arguments