mod: reduce complexity of solution 4.5 .