fleshed out arithmetic.py