331_맹성주 : refine sample.c code by inspection