How to create a region plug-in