Functions of the Atmosphere