PopulationGraph class done(not tested yet)