add demo for using c