First commit of the function to obtain the population data