Sample c code (add)