The basic operation of the gas turbine is similar to the of the steam power plant except that air is used instead of water. Fresh atmospheric air flows through a compressor that brings it to higher pressure. Energy is then added by spraying fuel into the air and igniting it so the combustion generates a high-temperature flow. This high-temperature high-pressure gas enters a turbine, where it expands down to the exhaust pressure, producing a shaft work output in the process. The turbine shaft work is used to drive the compressor and other devices such as an electric generator that may be coupled to the shaft. The energy that is not used for shaft work comes out in the exhaust gases, so these have either a high temperature or a high velocity. The purpose of the gas turbine determines the design so that the most desirable energy form is maximized. Gas turbines are used to power aircrafts, trains, ships, electrical generators, or even tanks.