added terms to c example code