created method to track population history of country and create line graph of up to seven populations