Working generator prototype