It’s certainly possible, though would need quite a bit of reorganising to get the example code to work as a plugin. I’ve heard various people on the forum talking about hosting plugins inside plugins, so I’m sure it’s been done, though I’ve never tried it myself.