adding a sample to show a simple case of callbacks with FFI