Added calculator logic and print statements.