Introduction to Hamiltonian dynamical systems and the N-body problem. (2017)