diff --git a/api/controller.js b/api/controller.js
index 100fc02..f7a0f4c 100644
--- a/api/controller.js
+++ b/api/controller.js
@@ -15,6 +15,8 @@ exports.calculate = function(req, res) {
'subtract': function(a, b) { return a - b },
'multiply': function(a, b) { return a * b },
'divide': function(a, b) { return a / b },
+ // 'modulo': function(a, b) { return a % b },
+ 'power': function(a, b) { return Math.pow(a, b) }
};
if (!req.query.operation) {
diff --git a/public/client.js b/public/client.js
index 612f1b9..48b030e 100644
--- a/public/client.js
+++ b/public/client.js
@@ -32,6 +32,12 @@ function calculate(operand1, operand2, operation) {
case '/':
uri += "?operation=divide";
break;
+ // case '%':
+ // uri += "?operation=modulo";
+ // break;
+ case '^':
+ uri += "?operation=power";
+ break;
default:
setError();
return;
diff --git a/public/index.html b/public/index.html
index db09b0b..0572060 100644
--- a/public/index.html
+++ b/public/index.html
@@ -39,6 +39,8 @@
+
+