Bone marrow transplants are common for certain serious illnesses.Which of these functions is restored by doing a bone marrow transplant