Fixed typos in code snippets