Implemented Display class for output to the screen.