Series rl circuit with battery