Added C sample as well