Fix example for sample

Review 597 by @jdoliner