changed the example to use the new plugin syntax