Generator, first try