added links to code in gists