Text this: The development of a three phase plant-wide mathematical model for sewage treatment