coded for combination in functions: combination and perm in class
generator.