Classical Mechanics: Hamiltonian and Lagrangian Formalism