Experiment with closures and classes