Thermodynamical Formalism