Another boundary problem; letting ```i``` go up to ```vector.size()``` will ensure an illegal index exception at the end of the loop. And you should presumably start at 1 instead of 2.