Update code sample for v0.7