Ventilation and gas exchange