calculator w/ file output