Calculator for CSCI507