Thermodynamics and It's Applications