The atmosphere and its functions on planet earth