New foundations for classical mechanics