Implement new Generator.extend inheritance method