A model for giant magnetoresistance in magnetic granular solids