copied over other work from arithmetic.py
working but not quitting