The index and new_index typeclasses.