Circuits and resistance of a wire