printMiddle.c finalized