Syntax error in example code