Added code examples inline.