Instantiating main plugin class