Kirchhoff's Law and Its Applications