towards MVC
combinations and permutations revised