write the definition of a class, swimmingPool, to implement theproperties of a swimming pool. Your class should have the instancevariables to store the length (in feet), width (in feet), depth (in feet), therate (in gallons per minute) at which the water is filling the pool, and therate (in gallons per minute) at which the water is draining from the pool.Add appropriate constructors to initialize the instance variables. Also addmember functions to do the following: determine the amount of waterneeded to fill an empty or partially filled pool; determine the time neededto completely or partially fill or empty the pool; add or drain water for aspecific amount of time