state preservation

The calculator will now keep a persistent state across input strings.
Two new commands: ‘C’ and ‘Q’ were introduced to clear the state and
quit the program, respectively.