Finish lab06A.c