added scripts from blog posts