Update sample.c

Practice of edit.