Changed self.index++ to self.index += 1