add closures in ruby