Fix the sample

Fixing the sample based on Bryan's latest update