Working on closure, added main class to help with simple tests