Create Ranges class and move relevant methods from SS class into it