getPath method added to Genetic Class