Solution to Program from command line Exercise