Adds example for registerPlugin