Added out of bounds exception to operator[].