We begin by recalling that geodesics can be obtained as solutions of the Euler-Lagrange equation of a Lagrangian given by the kinetic energy. We define symplectic and contact manifolds and we set up the basic geometry of the tangent bundle; we introduce the connection map, horizontal and vertical subbundles, the Sasaki metric, the symplectic form and the contact form. We describe the main properties of these objects and we show that the geodesic flow is a Hamiltonian flow. Also, when we restrict the geodesic flow to the unit sphere bundle of the manifold, we obtain a contact flow. The contact form naturally induces a probability measure that is invariant under the geodesic flow and is called the Liouville measure.