Explain how the hydrologic cycle works?