Note that in the interactive MPC demo at the end, it would in fact be simpler to simply perform an MPC to compute $g$ to the power of the sum of all participants' secret numbers. This interactive example will be updated for future learning groups.