You should also change the `1/length` to `1.0 / length`. We add `.0` to numbers when we mean for them to be floating point numbers. This isn't required by Javascript; its to make it easier for developers to read.