Updated C example