modified sampleOne.c