Added displayText() function