Example 5: updating and easing.