Explain How A Generator Works