You need to spread avgTemperatures (the function parameter) not AVG_TEMPERATURES.
I actually made this exact mistake myself and couldn’t figure it out either. I made a post about it being unclear here
Maybe i’ll try and make a pull request if I can think of a way to make this mistake happen less.