I'm having trouble calculating the average of an array of numbers.