Analytical Mechanics and Continuous Media