Pātuhitia tēnei: Algebraic models for accounting systems