Making the function static allows us to call it directly, without creating and removing an instance of the generator.