d2 - closures. we return an anonymous fx that has a var