a reverse-polish notation calculator for text console