my common classes and functions