Closures and the fold method