Updated for total population
Worked on analyzer to do income