Finished the gibbs free energy work