A basic Calculator to be hooked up to D3.js