final push for lab 5.  Added flow chart and fixed minor errors.