The respiratory system consists of the nose, pharynx, larynx, trachea, bronchi, bronchioles and lungs. Air enters through the nose where it is warmed, filtered and humidified. It then passes through the pharynx, larynx and trachea before reaching the bronchi and bronchioles which divide into smaller passages and terminate in alveoli in the lungs. Gas exchange takes place in the alveoli as oxygen diffuses into the blood and carbon dioxide diffuses out. The lungs and chest wall muscles work in coordination to inhale and exhale air in breathing.