fix example (syntax error and indenting)

make a working example