An Introduction to Ergodic Theory