making the plugin a class