Statistical Mechanics of Classical and Disordered Systems