What do you need to become useful?

According to the book of Exodus, while in the wilderness, the children of Israel discovered some water that was unfit for human consumption. What did Moses do to make the water drinkable?