added a class to generate Rundom functions