Add an example for (scalar) automatic differentiation