performs basic mathematic operations