Implemented running a line of user input and formatting the result for display to the user.