Edited the calculator code to work without eval