fixing syntax errors in the example