finished 3.c