class Array def max_index self.index(self.max) end end