Updated calc.py to do powers