Tweaked the code snippets to have equal amount of lines.