added the curry function to the framework.