a minimal calculator with closures!