Principles of classical mechanics and field theory