The lungs are two saccular organs located in the thorax that make up the basic respiratory organ. They consist of an inverted tree of intricately branched bronchioles that communicate with thin-walled terminal alveoli surrounded by capillaries, where gas exchange occurs. The right lung has three lobes and the left has two. The lungs function to alter the pH of blood by changing carbon dioxide levels, filter small blood clots and gas micro-bubbles from venous blood.