Correcting the code snippets.