add c sample