begin to implement the animation editing using adjoint method.