My work so far... It runs, but it's not done. The structure is weird due to arrays. No histogram yet
...