added enum and indexing to the Population