refactoring generate_fixed_dozens method