replace with:
```ruby
def index=(value)
  @index = Index === value ? value : Index.new(value)
end
```