Origin of immunity