There is an example in the documentation page.