The 4 main layers of the atmosphere are classified according to: