1. Extract out into several methods. 2. Add more comments describing the data and the shape of the data.
Attach a file by drag & drop or click to upload