simplistic command-line calculator