Added new method NumberOfLinesToDisplayText() to replace the body of OptimalSize() and GenerateLines(). Refactored OptimalSize().