The respiratory system has several functions including breathing, gas exchange, sound production, and smelling. It consists of the upper respiratory tract including the nose, sinuses, pharynx and larynx, and the lower respiratory tract within the thorax including the trachea, bronchi, and lungs. The lungs contain alveoli which are the sites of gas exchange between the bloodstream and body tissues.