adding sample c code