Statistical Mechanics and Critical Phenomena