add function with closures example