Dynamic Regret of Convex and Smooth Functions