changed method name(clearText -> clear) and added class methods for customize appearance