Ergodic theory and dynamical systems