text: from preparation import Extractor, Preparer, FileNotValidException
  from draw import Drawer
  import sys
  
  
  class MessageAnalyzer():
      def __init__(self, filename):
          self.filename = filename
          self.extracted = Extractor(filename).extract_messages()
  
      def analyze(self):
          prepared_messages = Preparer(self.extracted).prepare()
          drawer = Drawer(prepared_messages)
          drawer.draw_all()
          print('''
          Your plots r done!
          Would u like to save it? (y/n)
          ''')
          while True:
              choice = input()
              if choice in 'yY':
                  path = input('Path to save: ')
                  drawer.save_all(path)
                  break
              elif choice in 'nN':
                  break
  
  
  if __name__ == '__main__':
      try: 
          path_to_file = sys.argv[1]
      except IndexError as e:
          path_to_file = './examples/messages.txt'
      analyzer = MessageAnalyzer(path_to_file)
      analyzer.analyze()
  