Statistical Mechanics and Applications in Condensed Matter