Design and construction of water treatment machines