The earliest reservoir and dam