A model of the origin of the Jovian ring