Topics in dynamics and ergodic theory