blog post about closures and loops with code.