Fresh cleanedup implementation of the population class