An example of model (mvc) taken from my personal framework CaPHPy