A Note on the Ergodic Theorem