Update example code

Signed-off-by: Mircea Pop <mircea.pop@freescale.com>