Statistical mechanics