Second Law Of Thermodynamics And Its Applications