First fully working version of calc.py