added comment: URL for original I took code snippets from