Explain the role of gravity in the waterfall.