added c sample