<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dimension(self):
 """ current dimension due to selected features Returns ------- dim : int total dimension due to all selection features """

        dim = sum(f.dimension for f in self.active_features)
        return dim