Fixing syntax errors in examples