Combining gibbs calculator with functions to find reaction equations