added simple program to test closures