Modified some code examples to avoid side-scrolling