A deterministic epidemic model taking account of repeated contacts between the same individuals