What layer of the atmosphere is in the middle?