source code for the UACalc program