Introduction to Hamiltonian Dynamical Systems and the N-Body