A few modules I've written:

I've tried to make these modules either self-contained BAS modules or class files. So many other examples on the Internet just show you how to do it, but not in a generic fashion. I've tried to make these so you can simply include the file in your code and go. (This also helps me practice good code-reuse strategies.)