Initial solution, no optimization for ranges.
Remove comment