<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_current_allocation(self):
 """ Calculates the current allocation % based on the value """

        for ac in self.asset_classes:
            ac.curr_alloc = ac.curr_value * 100 / self.total_amount