application of statistical mechanics