Update example to use client library