a simple integer calculator