kernel_smooth_sample_code