added C example