# Code Challenge Help

I'm absolutely stumped and can't seem to understand what I'm doing wrong.

Now that we have the while loop set up, it's time to compute the sum!

Using the value of counter as an index value, retrieve each value from the array and add it to the value of sum.

## For example: sum = sum + newValue. Or you could use the compound addition operator sum += newValue where newValue is the value retrieved from the array.

I believe my code is attached at the bottom, but why doesn't it work out?

My thoughts were that newValue would equal to the counter's corresponding value in the index. I might be throwing around the wrong terminology here and I apologize.

For example, if the counter was 0, then numbers[counter] would be 2?

From there you add sum (0) with new value which is equal to numbers[counter] or 2. Then it would add one to counter, and repeat.

numbers[counter] or numbers[1] = 8 Add that to the sum which is currently 2 and go on.

I'd appreciate any help!

loops.swift
```let numbers = [2,8,1,16,4,3,9]
var sum = 0
var counter = 0
var newValue = numbers[counter]

while counter > numbers.count {
sum += newValue
counter += 1
}
```

```var newValue = numbers[counter]