Many cities have rules and regulations around swimming pools, often requiring an enclosure or fence depending on the pool depth, so check the by-laws for your area.