How would you explain the energy changes taking place in a hydroelectric dam?