added a sample to test the library from C