Submitted implementation of arith-eval function in chp 8 exercise.