public function offsetSet($key, $value)
    {
        $key = $this->count - $key - 1;
        if (!isset($this->data[$key])) {
            throw new \OutOfRangeException("Out of range.");
        }

        $this->data[$key] = $value;
    }