I would use ```rec[self.name]``` and remove the index attribute from this class.