Creates script to calculate populations
population works properly and is integrated