Fix syntax errors in the code samples