Part II. Writing Functions and Plug-ins