Updated example to sample.