demo programs for handling commandline arguments