rudimentary calculator