Finished basic implementation of calculator logic.