finally a working example of the C API wrapper!