A compressor is a rotary machine that increases the pressure of a gas. It requires an external work input through a rotating shaft. Compressors can increase gas pressure to very high levels. Pumps function similarly but handle liquids instead of gases. An example problem involves an air compressor that compresses 0.5 kg/s of air adiabatically from 1 bar, 27°C to 5 bar. Using the first law of thermodynamics, the exit temperature is found to be 127°C. Compressors and pumps are important machines that increase the pressure of fluids, whether gases or liquids, but require external work to do so.