doc: Complex Lua extensions example