def insert(self, sars):
    if (self.index == 10):
        print('first 10 ', self.buffer[0:10])
    self.buffer[(self.index % self.buffer_size)] = sars
    self.index += 1
def insert(self, sars):
    if (self.index == 10):
        print('first 10 ', self.buffer[0:10])
    self.buffer[(self.index % self.buffer_size)] = sars
    self.index += 1