fixed 2-7.c