Hi!
There is an existing library of helper functions with some examples found here which, though not officially supported by Modern Tribe, you may be able to leverage and use “as is” or you can adopt the same methodology and use it as the basis of your own solution.
Above and beyond that I’d definitely recommend familiarizing yourself with the following resources (the Themer’s Guide and tutorials being the most important) to get a sense of how to work with and customize our plugins, plus various best practices:
I hope that helps 🙂