Thanks to Brad Williams, cofounder of WebDevStudios.com for this great intro to writing plugins for WordPress!