refactored viewcontroller into calculator view controller. i should have done this a while ago. it might have unwanted unexpected results. i might regret doing this.