Added range-based case