Improved C bindings example