finished example for language binding (for implementing structure input/output function calls)