Sample code to experiment with territories.