the method extract_generation is screwed up and does not work yet, neither does the test.