updated arithmetic.py