add explicit closures
add a function for making 'methods' public in OO style