created a class TextTool and added main to it.