notes on canonical ensembles 3196166