design and construction of a smart pool