See this example.