In the chapter on classes in the processing handbook, there is a section on a "spot" class, which is implemented in a sketch to create an array of 6 spots with different speeds or rates. I tried "improving" this sketch by adding an array with different values of rate, but for some reason when I run the sketch, all the spots have the same speed, the last value in my "rate" array. Here is what I came up with (what I added is in the "rates" array plus the extra for-loop dealing with the rates array within void setup):