code: def calculate_columns(self):
          
  
          self.cols = int(math.ceil(len(self.elements) / float(self.rows)))
docs: Assuming the number of rows is constant, work out the best
          number of columns to use.