A first course in dynamical system and ergodic theory