coding the PluginDirectory class (+tests)