moves the calculator code into an object called "calc".