test and implement method for finding the total population of a continent