complete the animation sample