These changes were just so that these lines could go in their own method. For example, `tmin` and `tmax` are just passed into `__init__`, so it's easiest to access them from this method using `self.tmin` and `self.tmax`. I think the real fix came from dealing with the indices correctly.