modified elg-demo to try adding UDFs (untested); added func_prod UDF (not finished; won't build)