rewrote command line argument and sanity check lessons