sample.c edited