Update code sample for v0.7 (again)