adding testseg.c