Implemented displayText function.