Mathematical Model of a Prototype Water System