<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def calculate_columns(self):
 """Assuming the number of rows is constant, work out the best number of columns to use."""


        self.cols = int(math.ceil(len(self.elements) / float(self.rows)))