what is an electric circuit, and what is it,s purpose. also what is the purpose of a resister on an electronic circuit.