structuring the plugin so we can write other methods to it