Foundations of Statistical Mechanics