Mechanisms of tumor immunity