Updated example code

Syntax Changed