STATISTICAL-MECHANICS MODELS AND MODULAR GROUP