https://openstack.pythonprogramminghelp.com/5-easy-fixes-to-basic-population-analysis/