unified code style by refactor PluginExample