Change tutorial examples to use v3 API

All the tutorial examples still use the v2 API. This patch converts them to v3
examples instead.

Signed-off-by: Ken Barber <ken@bob.sh>