Here is a video walkthrough of building a plugin.