The immune system as a social network