refactored calculator code to include prototypical classes.

q

quit