Docs and more complete example.