Smooth Mechanics