Use a DataRange helper class

This approach is clearer than relying on the order of data in a Tuple2.