API that performs addition and multiplication and stores a history