Zaslat SMS: Foundations of Ergodic Theory