Added simple closure implementation