Added the calculator, with a function and conditionals.