snippets of code based on projects from http://www.theamazingweb.net/projects/givemesomethingtocode/