statistical mechanics problem