or toy steam engines and a few full scale cases, the heat source can be an electric heating element. Boilers Boilers are pressure vessels that contain water to be boiled, and features that transfer the heat to the water as effectively as possible. The two most common types are: Water-tube boiler Water is passed through tubes surrounded by hot gas. Fire-tube boiler Hot gas is passed through tubes immersed in water, the same water also circulates in a water jacket surrounding the firebox and, in high-output locomotive boilers, also passes through tubes in the firebox itself (thermic syphons and security circulators). Fire-tube boilers were the main type used for early high-pressure steam (typical steam locomotive practice), but they were to a large extent displaced by more economical water tube boilers in the late 19th century for marine propulsion and large stationary applications. Many boilers raise the temperature of the steam after it has left that part of the boiler where it is in contact with the water. Known as superheating it turns 'wet steam' into 'superheated steam'. It avoids the steam condensing in the engine cylinders, and gives a significantly higher efficiency. Motor units In a steam engine, a piston or steam turbine or any other similar device for doing mechanical work takes a supply of steam at high pressure and temperature and gives out a supply of steam at lower pressure and temperature, using as much of the difference in steam energy as possible to do mechanical work. These "motor units" are often called 'steam engines' in their own right. Engines using compressed air or other gases differ from steam engines only in details that depend on the nature of the gas although compressed air has been used in steam engines without change. Cold sink As with all heat engines, the majority of primary energy must be emitted as waste heat at relatively low temperature. The simplest cold sink is to vent the steam to the environment. This is often used on steam locomotives to avoid the weight and bulk of condensers. Some of the released steam is vented up the chimney so as to increase the draw on the fire, which greatly increases engine power, but reduces efficiency. Sometimes the waste heat from the engine is useful itself, and in those cases, very high overall efficiency can be obtained. Steam engines in stationary power plants use surface condensers