A 40yrs old man has chronic cough with fever for several months . The radiography reveals a diffuse reticulonodular Patten's.microscopically on transbronchial biopsy there are focal areas of inflammation conraining epithioid cell granuloma , Langerhans cells, lymphocytes, these findings are typically for which of the following type of hypersensitivity immunological response