use ruby ranges for the input