Fixing syntax error in example