Copied over the rest

Copied over the rest of the functions from my calculator. So far having
issues with test class printing an extra line of input to the console.