Add a solution using a generator.