Why would a generator be an important part of an electrical circuit?