A hysteresis model with interactions