fixing some code example syntax errors