Update code example for v1.0.0