Application Of First Law Of Thermodynamics