Update sample to latest syntax