         textViewToolbar.sizeToFit()
         
         textView.inputAccessoryView = textViewToolbar
+    }
+    
+// Bar Button Generation
+    
+    func generateLeftBarButton(_ title: String) -> UIBarButtonItem {
+        let leftBarButton = UIBarButtonItem()
+        leftBarButton.target = self
+        leftBarButton.action = #selector(leftButtonAction)
+        leftBarButton.title = title
+        
+        return leftBarButton
+    }
+    
+    func generateRightBarButton(_ title: String) -> UIBarButtonItem {
+
+        let rightBarButton = UIBarButtonItem()
+        rightBarButton.target = self
+        rightBarButton.action = #selector(rightButtonAction)
+        rightBarButton.title = title
+        
+        return rightBarButton
     }
     
 // Toolbar Action Methods

    
    public func updateRightButtonText(_ newText: String?) {
        
        if let barButtonItems = textViewToolbar.items, let newText = newText {
            
            rightButtonText = newText
            
            var updatedBarButtonItems : [UIBarButtonItem] = []
            let rightBarButton: UIBarButtonItem = UIBarButtonItem(title: newText, style: .done, target: self, action:#selector(rightButtonAction))
            
            updatedBarButtonItems.append(barButtonItems[0])
            updatedBarButtonItems.append(barButtonItems[1])
            updatedBarButtonItems.append(rightBarButton)
            
            textViewToolbar.items = updatedBarButtonItems

        }
        
        if let rightButtonText = rightButtonText {
            let rightBarButton = generateRightBarButton(rightButtonText)
            barButtonItems.append(rightBarButton)
        }
        
